package com.adcc.loadsheet.billing.vo.contractuser;

import com.adcc.loadsheet.billing.entity.contractuser.ContractUserEntity;
import com.adcc.loadsheet.billing.vo.BasisVO;

import java.util.Date;

/**
 * 合同用户表实体VO
 * Created by zhaoml on 2020/4/13.
 */
public class ContractUserEntityVO extends BasisVO<ContractUserEntity> {
    private Integer contractUserId;   //主键ID
    private String userAbbrev;  //用户简称
    private String userFullname; //用户全称
    private Integer userType;   //类型：1：机场、2：航司
    private String personLiable;   //责任人
    private String mobilephone;   //手机
    private String telephone;   //电话
    private String mail;   //邮件
    private String postcode;   //邮编
    private String address;   //地址
    private Integer billingRuleId;   //计费规则主键ID
    private Date createAt;  //创建时间
    private String createUser;   //创建人
    private Date updateAt;   //更新时间
    private String updateUser;  //更新人

    //计费范围（机场）
    private String airportIds;
    //计费范围（航司）
    private String airlineIds;
    //关联用户
    private String associatedUserIds;
    //关联权限
    private String permissionIds;

    @Override
    public ContractUserEntity toEntity() {
        ContractUserEntity contractUserEntity = new ContractUserEntity();
        contractUserEntity.setContractUserId(this.contractUserId);
        contractUserEntity.setUserAbbrev(this.userAbbrev);
        contractUserEntity.setUserFullname(this.userFullname);
        contractUserEntity.setUserType(this.userType);
        contractUserEntity.setPersonLiable(this.personLiable);
        contractUserEntity.setMobilephone(this.mobilephone);
        contractUserEntity.setTelephone(this.telephone);
        contractUserEntity.setMail(this.mail);
        contractUserEntity.setPostcode(this.postcode);
        contractUserEntity.setAddress(this.address);
        contractUserEntity.setBillingRuleId(this.billingRuleId);
        contractUserEntity.setCreateAt(this.createAt);
        contractUserEntity.setCreateUser(this.createUser);
        contractUserEntity.setUpdateAt(this.updateAt);
        contractUserEntity.setUpdateUser(this.updateUser);
        return contractUserEntity;
    }

    @Override
    public String toJSON() {
        return null;
    }

    public Integer getContractUserId() {
        return contractUserId;
    }

    public void setContractUserId(Integer contractUserId) {
        this.contractUserId = contractUserId;
    }

    public String getUserAbbrev() {
        return userAbbrev;
    }

    public void setUserAbbrev(String userAbbrev) {
        this.userAbbrev = userAbbrev;
    }

    public String getUserFullname() {
        return userFullname;
    }

    public void setUserFullname(String userFullname) {
        this.userFullname = userFullname;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getPersonLiable() {
        return personLiable;
    }

    public void setPersonLiable(String personLiable) {
        this.personLiable = personLiable;
    }

    public String getMobilephone() {
        return mobilephone;
    }

    public void setMobilephone(String mobilephone) {
        this.mobilephone = mobilephone;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getBillingRuleId() {
        return billingRuleId;
    }

    public void setBillingRuleId(Integer billingRuleId) {
        this.billingRuleId = billingRuleId;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getUpdateAt() {
        return updateAt;
    }

    public void setUpdateAt(Date updateAt) {
        this.updateAt = updateAt;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getAirportIds() {
        return airportIds;
    }

    public void setAirportIds(String airportIds) {
        this.airportIds = airportIds;
    }

    public String getAirlineIds() {
        return airlineIds;
    }

    public void setAirlineIds(String airlineIds) {
        this.airlineIds = airlineIds;
    }

    public String getAssociatedUserIds() {
        return associatedUserIds;
    }

    public void setAssociatedUserIds(String associatedUserIds) {
        this.associatedUserIds = associatedUserIds;
    }

    public String getPermissionIds() {
        return permissionIds;
    }

    public void setPermissionIds(String permissionIds) {
        this.permissionIds = permissionIds;
    }
}